package com.zc.ZCUtil;

import java.sql.*;
import java.util.ArrayList;

import com.zc.theatherControl.SimpleJava.Movies;

public class JDBC {

	public static void main(String[] args) {
//		try {
//	          Class.forName("com.mysql.jdbc.Driver");   
////	          Class.forName("org.gjt.mm.mysql.Driver");
//	          System.out.println("Success loading Mysql Driver!");
//	    }catch (Exception e) {
//	          System.out.print("Error loading Mysql Driver!");
//	          e.printStackTrace();
//	    }
		
		String dbUrl = "jdbc:mysql://localhost:3306/moviejavadata?useSSL=false";
		String dbUserName = "root";
		String dbPassword = "zhangcheng";
		TheaterDAO jdbc = new TheaterDAO(dbUrl, dbUserName, dbPassword);
		

//			Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/zcdatabase?useSSL=false","root","zhangcheng");
			
			ArrayList<Movies> movies = new ArrayList<Movies>();
//			movies = jdbc.getMoviesFromDB();
			for(int i = 0; i<movies.size();i++) {
				
			}
			

	}
}
